package com.tkr.service;

import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface BaseService<T>{
    //分页
    public PageInfo<T> selectByPage(Map<String, Object> map);

    //查询
    public List<T> selectMap(Map map);
    public T select();
    public List<T> selectEntity(T t);

    //新增
    public int insert(T t);

    //修改
    public int update(T t);

    //删除
    public int delete(int id);
}
